package com.zhouyy.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zhouyy.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@TableName("t_fruit")
@EqualsAndHashCode(callSuper = true)
@ApiModel("水果实体")
public class Fruit extends BaseEntity {

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("类型")
    private Integer type;

    @ApiModelProperty("价格")
    private BigDecimal price;
}
